<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>019赋值运算符</title>
</head>

<body>
  <h1>019赋值运算符</h1>
  <script>
    /* 
      1 赋值运算符
        =
        +=
        -=
        *=
        /=
    */
    let num = 1
    num %= 2 // 等价于 num = num % 2
    console.log(num) // 1
  </script>
</body>

</html>